import axios from "axios";

const instance = axios.create();

instance.interceptors.response.use(function(res){
        if(res.data.code != 0){
            this.$message({
                showClose: true,
                message: res.data.msg,
                type: 'error'
          });
          return null;
        }

        return res.data.data;
})

export default instance;


